package com.learn.ch02ttlqueue.confim_advance.consumer;

import com.learn.ch02ttlqueue.confim_advance.config.RabbitConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/08/24
 * @description ch08 发布确认高级
 */
@Component
@Slf4j
public class ConfirmConsumer {
    @RabbitListener(queues = RabbitConfig.CONFIRM_QUEUE)
    public void receiveConfirm(Message message) {
        log.info("消息： {}", new String(message.getBody()));
    }
}
